package com.roc.service;

import java.util.List;
import java.util.Map;

import com.roc.bean.TransLimitBean;
import com.roc.bean.orgMainBean;
import com.roc.pojo.Operators;
import com.roc.pojo.OrgBean;
import com.roc.pojo.TblArea;
import com.roc.pojo.TblInsInf;

public interface IorgService {
	//查询所有机构
	List<TblInsInf> queryAllOrgList()throws ServiceException;
	//添加机构
	Map<String, Object> addOrg(TblInsInf bean, Operators op) throws ServiceException;
	//修改机构
	int updateOrg(TblInsInf bean,Operators op)throws ServiceException;
	//查询所有机构
	List<TblInsInf> queryOrgList()throws ServiceException;
	//根据编号查询机构
	TblInsInf queryInsByCode(String ins_code)throws ServiceException;
	//根据编号查询机构
	OrgBean queryOrgByCode(String org_code)throws ServiceException;
	List lisOrgByCode(String org_code)throws ServiceException;
	List lisOrgByMerchantId(long merchantId)throws ServiceException;
	List<OrgBean> listOrgs(Operators operators)throws ServiceException;
	
	List<TblInsInf> listOrg(TblInsInf inf) throws ServiceException;
	/**
	 * 根据机构号得到区域
	 * @param orgCode
	 * @return
	 * @throws ServiceException
	 */
	List<TblArea> listAreaByOrgCode(String orgCode) throws ServiceException;
	
	TblInsInf queryOrgByOrgCode(String org_code)throws ServiceException;
	
	List<orgMainBean> listOrgMainByOrgCode(String orgCode)throws ServiceException;
	
	orgMainBean queryOrgMainByOrgMain(String orgMain)throws ServiceException;
	
}
